package com.example.szh.mvp.view.user;

import android.content.Context;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import androidx.appcompat.app.AppCompatActivity;

import com.example.szh.R;

public class ITunesActivity extends AppCompatActivity {

    private Button backBnt;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_i_tunes);
        initView();
        SharedPreferences isLogin = getSharedPreferences("isLogin", Context.MODE_PRIVATE);
        backBnt.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                SharedPreferences.Editor edit = isLogin.edit();
                edit.putBoolean("is", false);
                edit.commit();
                finish();
            }
        });
    }

    private void initView() {
        backBnt = (Button) findViewById(R.id.back_bnt);
    }
}